using Blackbird.Core.Editable.Map;
using Blackbird.Core.Entities.Map;
using Microsoft.Xna.Framework.Content.Pipeline;

namespace Blackbird.Pipeline
{
    /// <summary>
    /// This class will be instantiated by the XNA Framework Content Pipeline
    /// to apply custom processing to content data, converting an object of
    /// type TInput to TOutput. The input and output types may be the same if
    /// the processor wishes to alter data without changing its type.
    ///
    /// This should be part of a Content Pipeline Extension Library project.
    ///
    /// TODO: change the ContentProcessor attribute to specify the correct
    /// display name for this processor.
    /// </summary>
    [ContentProcessor(DisplayName = "Blackbird.Pipeline.EditableMapProcessor")]
    public class EditableMapProcessor : ContentProcessor<EditableMapLayer, LevelMap>
    {
        public override LevelMap Process(EditableMapLayer input, ContentProcessorContext context)
        {
            var levelMap = new LevelMap(input.Height, input.Width);

            return levelMap;
        }
    }
}